MessageFormat Class (cont.) |
![]() |
Use a MessageFormat | |
fmt = new MessageFormat( patternStr ); fmt.format( args ); |
||
![]() |
Some patterns | |
"The disk {0} has failed." "On {0,date}, {1,number} people attended." "On {0,date,MMM dd, yy}, ..." |